/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

public class PanelTambahPinjaman extends JPanel{
 private JLabel labelKodeAnggota ;
 private JTextField textKodeAnggota;
 private JLabel labelKodeKoleksi ; 
 private  JTextField textKodeKoleksi;
 private JButton tombolSimpan ;
 private  JButton tombolBatal;
    public PanelTambahPinjaman (){
    this.setSize(500,400);
    setLayout(null);

     labelKodeAnggota =new JLabel("Kode Anggota ");
     labelKodeAnggota.setBounds(50, 80, 150, 40);
     add(labelKodeAnggota);
     textKodeAnggota=new JTextField(20);
     textKodeAnggota.setBounds(150, 90, 150, 20);
     add(textKodeAnggota);

     labelKodeKoleksi =new JLabel("Kode koleksi ");
     labelKodeKoleksi.setBounds(50, 110, 150, 40);
     add(labelKodeKoleksi);
     textKodeKoleksi=new JTextField(20);
     textKodeKoleksi.setBounds(150, 120, 150, 20);
     add(textKodeKoleksi);

       tombolSimpan = new JButton("SIMPAN ");
    tombolSimpan.setBounds(100, 150, 100, 20);
    add(tombolSimpan);
    tombolSimpan.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
               tombolSimpanCommand();
            }
        });

    tombolBatal = new JButton("BATAL ");
    tombolBatal.setBounds(260, 150, 100, 20);
    add(tombolBatal);
    tombolBatal.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
            cancelCommand();
            }
        });
}
    private void cancelCommand(){
        System.exit(0);
    }
   
     private void tombolSimpanCommand() {
                throw new UnsupportedOperationException("Not yet implemented");
            }
    }
